import DictService from "~/service/module/system/dict"
import { Code } from "~/utils/enums"
const useDelete = () => {
    const dictService = new DictService()
    const deleteByIds = async (ids: number[]) => {
        const res = await dictService.delete(ids.join(','))
        if (res.code === Code.SUCCESS) {
            $message.success('删除成功')
        }
    }

    return {
        deleteByIds
    }
}

export default useDelete